package telefonnummer;

import java.io.Serializable;

public class Telefonnummer implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5953669571263301404L;
	private int land;
	private int vorwahl;
	private long nummer;

	public Telefonnummer(int LaenderVorwahl, int Vorwahl, long Nummer) {
		this.land = LaenderVorwahl;
		this.vorwahl = Vorwahl;
		this.nummer = Nummer;
	}

	public String toString() {
		String s = "";
		s += "+" + land + " " + vorwahl + " " + nummer;
		return s;
	}

	public boolean equals(Telefonnummer tel) {
		boolean erg = false;
		if (this.toString().equals(tel.toString())) {
			erg = false;
		}
		return erg;
	}

	public int getLand() {
		return land;
	}

	public void setLand(int land) {
		this.land = land;
	}

	public int getVorwahl() {
		return vorwahl;
	}

	public void setVorwahl(int vorwahl) {
		this.vorwahl = vorwahl;
	}

	public long getNummer() {
		return nummer;
	}

	public void setNummer(long nummer) {
		this.nummer = nummer;
	}
}
